package com.zyt.mapper;

import com.zyt.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    List<Address> selectAllAddress(Integer userId);
    void deleteById(Integer addreddId);
//    将用户的id改为非默认
    void updateSelectedStateToNull(Integer userId);
//    将指定地址改为默认
    void updateSelectedStateToSelected(Integer addressId);

    void insertAll(@Param("name") String name,@Param("address")String address,@Param("mobile")String mobile);
}
